/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package huffman;

/**
 *
 * @author Ero
 */
public class Leaf {
    int frequency; // frequency of char
    char ch; 

    // post: construct an entry with frequency f
    public Leaf(char c){
        ch=c;
        frequency=1;
    }
    // post: construct character entry with frequency 1
    public boolean equals(Leaf other){
        if(other.ch==this.ch){
            return true;
        }else
        {
            return false;
        }
    }

    
}
